<?php 
include 'selector.lib.php';

$html = "<html>
    <div>
        <a>123321<b></b></a>
    </div>
</html>";

$dom = new SelectorDOM($html);

$links = $dom->select('a',false);


foreach($links as $link){
var_dump($link) ;
    
}